$(document).ready(function() {
        var show = function(e) {
            // $('#head_action')[0].offsetLeft);
            $('#head_action').attr('class', "hover");
        }
        var hide = function(e) {
            $('#head_action').attr('class', "active");
        }

        $('#head_action a').hoverIntent({
                over : show,
                timeout : 500,
                out : hide
            })
    });